<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <title>毛游戏测试</title>
    <script src="https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
    <script src="glplay.js"></script>
</head>

<body>
    <script>
        function ts1() {
            appendImg("./img/tachi01a.png", "tebg1", 483, 600, 0, 158.3)
            setText("测试立绘")
        }
        function ts2() {
            delelem("tebg1")
            appendImg("./img/tachi01b.png", "tebg1", 483, 600, 0, 158.3)
            setText("测试更换立绘")
        }
        function ts3() {
            playBGM("normal")
            setText("循环播放BGM")
        }
        function ts4() {
            playBGM("voice1")
            setText("播放语音")
        }
        function ts5() {
            playBGM("voice1")
            setText("重新播放上一条")
        }
        function ts6() {
            stopBGM("voice1")
            playBGM("voice2")
            setText("播放另一个并停止前一个语音")
        }
        function ts7() {
            addSelect("推倒她", ["test1", "'你被送去骨科'"], "selt1", 400, 50, 150, 200, "rgba(0,0,0,0.4)", "rgba(0,0,0,0.8)")
            addSelect("推倒他", ["test1", "'你被丁丁刺死'"], "selt2", 400, 50, 350, 200, "rgba(0,0,0,0.4)", "rgba(0,0,0,0.2)")
            setText("选择选项卡")
        }
        function test1(data) {
            alert(data)
        }
        $(function () {
            setStage("test", "body", 800, 600)
            setStageBackGround("./img/back03.bmp")
            setStageText(780, 170, 420, 10, "rgba(0,0,0,0.5)")
            addBGM("./bgm/normal.ogg", "normal", true)
            addBGM("./voice/004.ogg", "voice1")
            addBGM("./voice/005.ogg", "voice2")
            setText("点击鼠标以终极开始")
            var num = 0
            $("#test").click(function () {
                num++
                if (num > 7) {
                    setText("调试已完成")
                } else {
                    exeFun("ts" + num)
                }
            })
        })
    </script>
</body>

</html>